package com.leicx.guli.auth.feign;

import com.leicx.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author daxiong
 * @date 2022/7/27 下午3:02
 */
@FeignClient(value = "gulimall-thirdparty")
public interface ThirdPartyFeignService {

    /**
     * 发送验证码
     *
     * @param phone
     * @param code
     * @return com.leicx.guli.common.utils.R
     * @author daxiong
     * @date 2022/7/27 下午3:04
     */
    @GetMapping("/sms/sendCode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
